package cn.ht.jywrwater.module.ht.controller.admin.statisticsdevicecount.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 设备在线统计 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class StatisticsDeviceCountBaseVO {

    @Schema(description = "设备类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "设备类型不能为空")
    private Integer type;

    @Schema(description = "在线数", requiredMode = Schema.RequiredMode.REQUIRED, example = "9570")
    @NotNull(message = "在线数不能为空")
    private Integer onlineCount;

    @Schema(description = "总数", requiredMode = Schema.RequiredMode.REQUIRED, example = "9964")
    @NotNull(message = "总数不能为空")
    private Integer totalCount;

}
